package com.lagou.dubbo.controller;

import com.lagou.dubbo.HelloServiceI;
import com.lagou.dubbo.service.HelloServiceAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloConroller {

    @Autowired
    private HelloServiceAPI helloService;


    @GetMapping("/hello")
    public String sayHello() {
        return helloService.sayHello("world", 0);
    }
}


